﻿using Bigway.Common.Models.DtoModels;

namespace Bigway.Common.Services;

public interface IBigwayApiClient
{
    Task<TResponse> InvokeAsyncWithJsonResponse<TRequestBody, TResponse>(HttpMethod method,
        string baseUrl,
        Dictionary<string, object>? query = default,
        TRequestBody? body = default,
        CancellationToken token = default)
        where TRequestBody : class
        where TResponse : BaseResponseDto, new();
}